package com.ruoyi.product.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProductController {
    @GetMapping("/product/{id}")
    public String product(@PathVariable("id") Long id) {
        return "查询"+String.valueOf(id)+"的产品";
    }
}
